package cn.like.base;

import com.baomidou.mybatisplus.extension.service.IService;

/**
 * desc: base service <br>
 * details: 建议使用 Wrappers.<T>lambdaQuery()
 *
 * @author like 980650920@qq.com
 * @date 2021-06-29 21:49:31
 * @see IService
 */
public interface BaseService<ENTITY> extends IService<ENTITY> {

    default ENTITY findByIdCol(String col, String value) {
        return this.getOne(this.query().eq(col, value));
    }
}
